
function logClass(constructor: Function) {
  console.log(`Class created: ${constructor.name}`)
}

@logClass
class Person {
  constructor(public name: string) {
  }
}

const p1 = new Person("a");
console.log(p1)